Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't assume Google Chrome is the default browser #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zhimsel
Copy link

@zhimsel zhimsel commented Mar 18, 2019

Without using -a <browser>, the open command just uses the user's
default browser. This may not be the case, and if it's not, it breaks
the preview workflow when g:vim_markdown_preview_browser="Google Chrome" is set.

For example, say the user's default browser is set to Firefox. If the user's vimrc has g:vim_markdown_preview_browser="Google Chrome" set, the included applescripts will search Chrome for an already-open preview tab. If it doesn't find one, it'll open the preview in Firefox instead.

Without using '-a <browser>', the 'open' command just uses the user's
default browser. This may not be the case, and if it's not, it breaks
the preview workflow when using 'g:vim_markdown_preview_browser="Google
Chrome"'.
zhimsel added a commit to zhimsel/dotfiles that referenced this pull request Mar 18, 2019
For Vim_Markdown_Preview(), the file is saved to `/tmp/`. Whoops!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant